#!/usr/bin/env bash
#curl -l -H "Content-type: application/json" -X POST -d '{"pushID":"192.168.0.1", "len":"0","data":[]}' 10.102.9.143/loraservice
##注册失败
curl -l -H "Content-type: application/json" -X POST -d '{"pushID":"0.0.0.0", "seqNo":"5","batchTotal":"1","batch":"1","len":"1","data":[ {"CMD":"12", "from":"0.0.0.0", "to": "255.255.255.255", "seq":"12", "devID":"12345670", "MAID":"8","PID":"1","key":"ABCDEFGH"}]}
' 10.102.9.143/loraservice
##注册成功
#curl -l -H "Content-type: application/json" -X POST -d '{"pushID":"0.0.0.0", "seqNo":"5","batchTotal":"1","batch":"1","len":"1","data":[ {"CMD":"12", "from":"192.168.0.5", "to": "192.168.0.1", "seq":"12", "devID":"12345670", "MAID":"8","PID":"2","key":"ABCDEFGH"}]}
#' 10.102.9.143/loraservice
#
##状态上报信息
#curl -l -H "Content-type: application/json" -X POST -d '{"pushID":"192.168.0.1", "seqNo":"9","batchTotal":"1","batch":"1","len":"2","data":[ {"CMD":"257", "from":"192.168.0.5", "to": "192.168.0.1", "seq":"17","appCMD":"21","freq":"1039","vol":"15","DSP":"1","SN":"20","BLK":"20","campus":"1"}, {"CMD":257, "from":"192.168.0.6", "to": "192.168.0.1", "seq":"11","appCMD":"21","freq":"1039","vol":"15","DSP":"1","SN":"20","BLK":"20","campus":"1"}]}
#' 10.102.9.143/loraservice

#注册请求
#curl -l -H "Content-type: application/json" -X POST -d'{"pushID":"0.0.0.0", "seqNo":"5","batchTotal":"1","batch":"1","len":"1","data":[ {"CMD":"12", "from":"0.0.0.0", "to": "255.255.255.255", "seq":"12", "devID":"12345670", "MAID":"8","PID":"1","key":"ABCDEFGH"}]}
#' 10.102.9.143/loraservice